package com.etoak.controller;

import com.etoak.common.vo.ResultVO;
import com.etoak.entity.Label;
import com.etoak.entity.LabelRefer;
import com.etoak.service.LabelReferService;
import com.etoak.service.LabelService;
import com.ruoyi.common.core.controller.BaseController;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hnb
 * @version 1.0
 * @Description:
 * @date 2022/5/11 下午2:10
 */
@RestController
@RequestMapping("/goertek/labelRefer")
public class LabelReferController extends BaseController {

    @Autowired
    LabelReferService labelReferService;

    /**
     * 查询标签引用列表
     * @param labelRefer
     * @return
     */
    @GetMapping("/queryList")
    public ResultVO queryList(LabelRefer labelRefer){
        List<LabelRefer> list = labelReferService.queryList(labelRefer);
        return ResultVO.success(list);
    }
}
